/* 强制修改主页top padding */

.page-content.index.ccb-index {
    padding-top: 0px;
}

/*app头部导航样式*/

.ccb-navbar-top {
    background-color: rgba(0, 0, 0, 0.3) !important;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 44px;
    z-index: 5000;
}

/* app底部导航样式 */

.ccb-navbar-bottom {
    background-color: rgba(255, 255, 255, 1) !important;
    z-index: 5000;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.ccb-navbar-layout {
    display: flex;
    justify-content: space-between;
}
/* 顶部固定的页面 */
.ccb-viewport.top-fix-page {
    padding-top: 50px;
}
/* 底部固定的页面 */
.ccb-viewport.bottom-fix-page {
    padding-bottom: 50px;
}

/* 头部横幅栏 */
.ccb-banner-top {
    background-image: url("../banner-bg.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding-top: 30px;
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

/* ccb logo */
.ccb-logo {
    overflow: hidden;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.ccb-logo-text {
    color: #fff;
    font-size: 14px;
    padding: 6px;
}

.ccb-logo > img {
    width: 100%;
    height: 100%;
}

/* bar 各种bar 不限定位置 只控制内部样式 */
.ccb-bar {
    width: 100%;
    /*默认全宽*/
    box-sizing: border-box;
    height: 50px;
    /*默认高度50px 可通过样式设置*/
}

.ccb-bar.ccb-bar-h-2x {
    height: 100px;
}

.ccb-bar.ccb-bar-h-3x {
    height: 150px;
}

/* fixed类型定位 */
.ccb-fixed-top {
    position: fixed;
    top: 0px;
}

.ccb-fixed-bottom {
    position: fixed;
    bottom: 0px;
}

/* 头部图标 */
.ccb-nav-icon {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0 8px;
    color: #fff !important;
}

.ccb-nav-icon img {
    display: inline-block;
    height: 30px;
}

.ccb-icon-circle img {
    border-radius: 50%;
}

/* 布局系统 固定型使用grid 需求灵活的使用flex*/
/* 格子样式 */
.ccb-grid {
    display: grid;
}

.ccb-grid-3c {
    grid-template-columns: 33.333% 33.333% 33.333%;
}

.ccb-grid-4c {
    grid-template-columns: 25% 25% 25% 25%;
}

.ccb-grid-item {
    background-color: #fff;
    text-align: center;
    padding: 8px;
}

/* 列表单列垂直型列表 */
.ccb-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ccb-list > li {
    margin: 0;
    padding: 6px;
    font-size: 12px;
}
.ccb-list > li.line {
    border-bottom: 1px solid #999;
    height: 1px;
    width: 100%;
    box-sizing: border-box;
}

/* 组件样式 */
/* 按钮 */
.ccb-btn {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0px 12px;
    text-align: center;
    font-size: 16px;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
}
.ccb-btn.ccb-block-btn {
    display: block;
}
.ccb-navbar-bottom .ccb-btn {
    flex: 1;
    padding: 0;
    height: 100%;
    line-height: 50px;
}
.ccb-btn.ccb-square-btn {
    border-radius: 0px;
}

/* 卡片 */
.ccb-card {
    display: block;
    padding: 4px;
}

/* 透明背景卡片 */
.ccb-card.ccb-opacity-card {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 8px;
}

/* 工具类 文字对齐 颜色 背景色 大小等 */
/* 背景色 */
.ccb-bg-orange {
    background-color: #f90;
}
.ccb-bg-red {
    background-color: #ed624b;
}
.ccb-bg-white {
    background-color: #fff;
}
.ccb-bg-gray {
    background-color: #f4f4f4;
}

/* padding 设置 */
.ccb-pd-4 {
    padding: 4px;
}
.ccb-pd-6 {
    padding: 6px;
}
.ccb-pd-8 {
    padding: 8px;
}
.ccb-pd-10 {
    padding: 10px;
}

/* 文字对齐 */
.ccb-ta-left {
    text-align: left !important;
}

.ccb-ta-center {
    text-align: center !important;
}

.ccb-ta-right {
    text-align: right !important;
}

/* 字体大小 */
.ccb-fs-12 {
    font-size: 12px !important;
}

.ccb-fs-14 {
    font-size: 14px !important;
}

.ccb-fs-16 {
    font-size: 16px !important;
}

.ccb-fs-18 {
    font-size: 18px !important;
}

.ccb-fs-20 {
    font-size: 20px !important;
}

.ccb-fs-22 {
    font-size: 22px !important;
}

/* 文字颜色 */
.ccb-c-white {
    color: #fff !important;
}
.ccb-c-orange {
    color: #f90 !important;
}

/* 文字修饰 下划线 横划线 */
.ccb-tdec-through {
    text-decoration: line-through !important;
}

/* 优惠券 */
.ccb-coupon {
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background-color: #fff;
    margin: 6px 0px;
}

.ccb-coupon .ccb-coupon-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccb-coupon .coupon-text {
    color: #f90;
}

.ccb-coupon .coupon-title {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 12px;
    text-align: left;
}

.ccb-coupon .coupon-desc {
    font-size: 10px;
    padding: 4px 12px;
    text-align: left;
    color: #666;
}

.ccb-coupon .coupon-pavalue {
    font-size: 36px;
    color: #999;
    padding: 12px;
}

.ccb-coupon .coupon-line {
    border-top: #bbb 1px dashed;
    margin: 4px auto;
    width: 95%;
    height: 1px;
}

.ccb-coupon .coupon-footer {
    padding: 12px;
    display: flex;
    justify-content: space-between;
}

.ccb-coupon .coupon-footer-desc {
    font-size: 10px;
    color: #999;
}
.ccb-coupon .coupon-footer-btn {
    font-size: 16px;
    color: #f90;
    text-decoration: none;
}

/*评价*/

.evaluate {
    padding: 2px 5px;
}

.evaluate-star {
    font-size: 12px;
    color: #f90;
}

.evaluate-star > i {
    margin: 0px;
}

.evaluate-camera {
    color: gainsboro;
}

.evaluate-img {
    width: 100%;
    height: 100%;
}

.evaluate-ul {
    overflow: hidden;
}

.evaluate-ul > li {
    position: relative;
    float: left;
    width: 25%;
    height: 80px;
    padding: 3px;
}

.evaluate-ul > li:last-child {
    text-align: center;
    line-height: 80px;
}

.evaluate-remove {
    position: absolute;
    top: -3px;
    right: -3px;
    color: red;
}

.good-m-l {
    margin-left: 20%;
}

/* 地址插件 */

.compontent-address {
    background-color: #fefced;
    width: 100%;
    /* height: 65px; */
}

.compontent-address.address_border {
    padding-top: 16px;
    /* background: #FEFCED url(…DXLwKT58CuX2cDTIEjdgOcYfJJ2A3Qgsmz4/CBwWgQUiMIAXzCOFELLk/nAAAAAElFTkSuQmCC) -7px bottom repeat-x; */
    background: #fefced
        url() -7px
        top repeat-x;
    background-size: 64px 5px;
}

.compontent-address .title {
    margin: 5px 0;
    font-weight: bold;
    font-size: 16px;
    padding-left: 10px;
}

.compontent-address .tag {
    padding: 5px 0;
    margin: 5px 0 5px 10px;
    border-radius: 5px;
    background-color: #f90;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    width: 50px;
}

.compontent-address .phone {
    line-height: 30px;
}

.compontent-address .address {
    line-height: 20px;
}

.compontent-address .icons {
    line-height: 65px;
    padding-right: 15px;
}

.compontent-address .icons .fa-chevron-right,
.compontent-address .icons .fa-times {
    color: #c9c9c7;
    font-size: 20px;
}

.compontent-address li .fa-times {
    color: red;
}

.compontent-address li .fa-pencil {
    color: #ff9900;
    margin: 0 0.5rem;
}

.compontent-address li .add-address {
    width: 2rem;
}

.compontent-address .list-block .item-title {
    width: 90%;
}

.popup-address {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #eee;
}

.popup-address .page-content {
    background-color: #eee;
}

.popup-address .page-content .content-block {
    background-color: #eee;
}

.popup-address .list-block ul {
    padding-left: 0px;
}

.compontent-address .address-list .address-item {
    padding-left: 10px;
}

.popup-address .row {
    background-color: #fff;
    line-height: 40px;
    padding: 3px 10px;
}
/* .popup-address .row div{
    line-height: 30px;
} */
.popup-address .row.defAdd {
    line-height: 40px;
}
.popup-address .row.defAdd label {
    margin-top: 10px;
}
.popup-address .tag {
    margin: 5px 5px;
    padding: 0px 5px;
    border-radius: 3px;
    line-height: 25px;
    color: gray;
    border: 1px solid gray;
    background-color: #fff;
    float: left;
}

.popup-address .tag.selected {
    color: #fff;
    border: 1px solid orange;
    background-color: orange;
}

.popup-address .save-btn {
    width: 80%;
    display: block;
    margin: 10px auto;
    text-align: center;
    line-height: 50px;
    border: 1px solid orange;
    font-size: 16px;
}

/* 优惠券插件 */

.compontent-coupon .title {
    width: 100px;
}

.compontent-coupon li .fa-times {
    color: red;
}

.compontent-coupon li .fa-pencil {
    color: #ff9900;
    margin: 0 0.5rem;
}

.compontent-coupon li .add-address {
    width: 2rem;
}

.compontent-coupon .list-block .item-title {
    width: 90%;
}

.coupon-list .disabled {
    color: #999;
}

.coupon-list {
    max-height: 200px;
    overflow-y: auto;
    padding-left: 10px;
}

.price-delete {
    text-decoration: line-through;
}

/* 订单类页面 产品列表 */

.good-list {
    display: block;
    padding: 0;
    margin: 0;
}

.good-list-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 4px 8px;
    border-bottom: #eee 1px solid;
}

.good-list-item > .good-img {
    display: block;
    flex: 0 1 70px;
}

.good-list-item > .good-img img {
    max-height: 68px;
}

.good-list-item > .good-info {
    flex: 1;
}

.good-list-item > .good-info > .good-name {
    color: #666;
    font-size: 12px;
    padding: 8px;
}

.good-list-item > .good-info > .good-price {
    font-size: 12px;
    padding: 8px;
}

.good-list-item > .good-info > .good-price-total {
    font-size: 16px;
    text-align: right;
}

.good-list-item > .good-info > .good-price-total div {
    padding: 4px 8px 4px;
}

/* 订单页面 radio 样式 */

[id^="ccb-switch-"] {
    display: none;
}

[id^="ccb-switch-"] + label {
    cursor: pointer;
    font-size: 1em;
}

[id^="ccb-switch-"] + label {
    background-color: #fafbfa;
    padding: 9px;
    border-radius: 50px;
    display: inline-block;
    position: relative;
    margin-right: 30px;
    -webkit-transition: all 0.1s ease-in;
    transition: all 0.1s ease-in;
    width: 40px;
    height: 15px;
}

[id^="ccb-switch-"]:checked + label:before {
    content: " ";
    position: absolute;
    left: 26px;
    border-radius: 100px;
}

[id^="ccb-switch-"] + label:before {
    content: " ";
    position: absolute;
    background: white;
    top: 1px;
    left: 1px;
    z-index: 999999;
    width: 31px;
    -webkit-transition: all 0.1s ease-in;
    transition: all 0.1s ease-in;
    height: 31px;
    border-radius: 100px;
    box-shadow: 0 3px 1px rgba(0, 0, 0, 0.05), 0 0px 1px rgba(0, 0, 0, 0.3);
}

[id^="ccb-switch-"]:checked + label:after {
    content: " ";
    font-size: 1.5em;
    position: absolute;
    background: #ff9900;
    box-shadow: 0 0 1px #333;
}

[id^="ccb-switch-"] + label:after {
    content: " ";
    position: absolute;
    top: 0;
    -webkit-transition: box-shadow 0.1s ease-in;
    transition: box-shadow 0.1s ease-in;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    box-shadow: inset 0 0 0 0 #333, 0 0 1px rgba(0, 0, 0, 0.4);
}
